# Makefile

all : pdf

dvi : regexhandout.tex sedhandout.tex
	latex regexhandout
	latex regexhandout
	latex sedhandout
	latex sedhandout

pdf : dvi
	dvipdf regexhandout.dvi
	dvipdf sedhandout.dvi

regexhandout : regexhandout.tex
	latex regexhandout
	latex regexhandout
	dvipdf regexhandout.dvi
	
sedhandout : sedhandout.tex
	latex sedhandout
	latex sedhandout
	dvipdf sedhandout.dvi


clean : 
	rm -r -f *~
	rm -r -f *.log
	rm -r -f *.lof
	rm -r -f *.lot
	rm -r -f *.aux
	rm -r -f *.blg
	rm -r -f *.dvi
	rm -r -f *.toc
	rm -r -f *.bbl
	rm -r -f *.out

viewhandout : regexhandout
	xpdf -z page regexhandout.pdf &

viewsed : sedhandout
	xpdf -z page sedhandout.pdf &
